//
//  RootViewController.m
//  Test
//
//  Created by cuibaoyin on 14-10-9.
//  Copyright (c) 2014年 cby. All rights reserved.
//

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    NSArray *titleArray = @[@"500元民国钞票买车票 原来,这位大爷姓应,永康人,今年快80岁了,常年在家待着,从未出过远门。应大爷这张500元大钞,是民国",@"票买车票 原来,这位大爷姓应,永康人,今年快80岁了,常年在家待着,从未出过远门。应大爷这张500元大钞,是民国... ",@"常年在家待着,从未出过远门。应大爷这张500元大钞,是民国... ",@"组图:8旬老汉从未出过远门 用500元民国钞票买车票.. ",@"组图:8旬老汉从未出过远年快80岁了,常年在家待着,从未出过远门。应大爷这张500元大钞,是民国... ",@"应大爷这张500元大钞,是民国",@"汉从未出过远年快80岁了,常年在应大爷这张500元大钞,是民国"];
    RadioButton *radioButton = [[RadioButton alloc] initWithFrame:CGRectMake(15, 80, 290, 0) titleArray:titleArray];
    radioButton.delegate = self;
    radioButton.backgroundColor = [UIColor greenColor];
    [radioButton setTitleFont:[UIFont fontWithName:@"HelveticaNeue-Medium" size:15]];
    [radioButton setSelectedRadioIndex:4];
    [radioButton setTitleColor:[UIColor redColor]];
    [self.view addSubview:radioButton];
}

- (void)radioButton:(RadioButton *)radioButton didSelectItemAtIndexPath:(NSInteger)index
{
    NSLog(@"第%d个Cell被选中",(int)index);
}

@end
